package com.workcell.workdata.im.model.vo;

import com.workcell.workdata.im.entity.Note;

import java.util.Date;

public class NoteVO {

    private Long id;


    private String text;

    private String content;

    private Byte format;

    private String extra;

    private Date createTime;

    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Byte getFormat() {
        return format;
    }

    public void setFormat(Byte format) {
        this.format = format;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public static NoteVO of(Note note){
        NoteVO vo = new NoteVO();
        vo.id = note.getId();
        vo.content = note.getContent();
        vo.extra = note.getExtra();
        vo.format = note.getFormat();
        vo.text = note.getText();
        vo.createTime = note.getCreateTime();
        vo.updateTime = note.getUpdateTime();
        return vo;
    }
}
